﻿<Page xmlns:my="clr-namespace:SkyShell"  x:Class="SkyShell.SkyShellAuthPage"
      xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
      xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
      xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
        xmlns:i="clr-namespace:System.Windows.Interactivity;assembly=System.Windows.Interactivity"
        xmlns:cmd="clr-namespace:GalaSoft.MvvmLight.Command;assembly=GalaSoft.MvvmLight.Extras.wpf4"
      mc:Ignorable="d" 
      d:DesignHeight="539" d:DesignWidth="405"
	Title="SkyShellAuthPage" DataContext="{Binding Source={StaticResource Locator}, Path=ShareContent}">

    <Grid>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="Auto" />
            <ColumnDefinition Width="353*" />
        </Grid.ColumnDefinitions>
        <Grid.RowDefinitions>
            <RowDefinition Height="495*" />
            <RowDefinition Height="Auto" />
        </Grid.RowDefinitions>
        <WebBrowser Name="LoginWebBrowser"  HorizontalAlignment="Stretch" VerticalAlignment="Stretch"  Visibility="Visible" Grid.ColumnSpan="2">
            <!--<i:Interaction.Triggers>
                <i:EventTrigger EventName="LoadCompleted">
                    <cmd:EventToCommand Command="{Binding ApplyAccessToken}" PassEventArgsToCommand="True"/>
                </i:EventTrigger>
            </i:Interaction.Triggers>-->
        </WebBrowser>
        <Grid x:Name="BusyBar" Height="5"  Background="Transparent" Margin="-5,-40,10,0" Grid.ColumnSpan="2" VerticalAlignment="Top" HorizontalAlignment="Stretch">
            <my:BusyAnimation OffsetSeconds="0.0"  VerticalAlignment="Center"  HorizontalAlignment="Stretch"/>
            <my:BusyAnimation OffsetSeconds="0.2"  VerticalAlignment="Center" HorizontalAlignment="Stretch" />
            <my:BusyAnimation OffsetSeconds="0.4"  VerticalAlignment="Center" HorizontalAlignment="Stretch"/>
            <my:BusyAnimation OffsetSeconds="0.6" VerticalAlignment="Center" HorizontalAlignment="Stretch"/>
            <my:BusyAnimation OffsetSeconds="0.8" VerticalAlignment="Center"  HorizontalAlignment="Stretch"/>
        </Grid>
        <CheckBox Visibility="Visible" Content="Remember access for SkyShellEx" Grid.Row="1" Margin="8" IsEnabled="True"  IsChecked="{Binding Path=RememberLogin, Mode=TwoWay}" HorizontalAlignment="Left" VerticalAlignment="Center" Grid.ColumnSpan="1" FontSize="16" Padding="4,-4,0,0" />
        <TextBlock Grid.ColumnSpan="2" HorizontalAlignment="Center" Margin="0" Name="textBlockStatus" Text="loading..." VerticalAlignment="Center" FontSize="32" Foreground="#FF8D8D8D" />
    </Grid>
</Page>
